//
//  TopListCell.m
//  XMLY
//
//  Created by 曾杰 on 15/11/6.
//  Copyright © 2015年 曾杰. All rights reserved.
//

#import "TopListCell.h"

@implementation TopListCell
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        _topLabel = [[UILabel alloc]initWithFrame:CGRectMake(10,10 , 30, 100)];
        _topLabel.textAlignment = NSTextAlignmentCenter;
        _topLabel.textColor = [UIColor colorWithRed:arc4random()%255/256.0 green:arc4random()%255/256.0 blue:arc4random()%255/256.0 alpha:1];
        _topLabel.font = [UIFont systemFontOfSize:24];
        [self.contentView addSubview:_topLabel];
        
        _picImageView = [[UIImageView alloc]initWithFrame:CGRectMake(40, 10, 80, 80)];
        [self.contentView addSubview:_picImageView];
        _titleLabel = [[UILabel alloc]initWithFrame:CGRectMake(130, 10,SCREEN_WIDTH-150, 20)];
        _titleLabel.font = [UIFont systemFontOfSize:15];
        [self.contentView addSubview:_titleLabel];
        
        _introLabel = [[UILabel alloc]initWithFrame:CGRectMake(130, 40,SCREEN_WIDTH-150, 20)];
        _introLabel.font = [UIFont systemFontOfSize:12];
        [self.contentView addSubview:_introLabel];
        
        
        //        _trackView = [[UIImageView alloc]initWithFrame:CGRectMake(screen_width/6+10+75, 85, 20, 20)];
        //        _trackView.image = [UIImage imageNamed:@"jishu"];
        //        [self.contentView addSubview:_trackView];
        
        
        _tracksCounts = [[UILabel alloc]initWithFrame:CGRectMake(130, 70, 100, 20)];
        _tracksCounts.font = [UIFont systemFontOfSize:12];
        [self.contentView addSubview:_tracksCounts];
    }
    return self;

}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
